import request from '@/utils/request'

export default {
    // 条件查询分页
    pageUserCondition(current, limit, userQuery) {
        return request({
          url: `admin/educenter/ucenterMember/pageUserCondition/${current}/${limit}`,
          method: 'post',
          data : userQuery
        })
    },
    // 根据id删除用户
    deleteUserById(id) {
      return request({
        url: `admin/educenter/ucenterMember/deleteUserById/${id}`,
        method: 'delete',
      })
    },
    //根据id查询用户
    getUserInfo(id) {
        return request({
          url: `admin/educenter/ucenterMember/getUserById/${id}`,
          method: 'get'
        })
    },
    // 添加用户
    addUser(user) {
      return request({
        url: `admin/educenter/ucenterMember/addUser`,
        method: 'post',
        data : user
      })
    },
    //更新用户
    updateUser(user) {
      return request({
        url: `admin/educenter/ucenterMember/updateUser`,
        method: 'post',
        data : user
      })
    },
}
